package com.pine.service.pineframework;

import com.pine.common.beans.pineframework.request.SysMenuQueryRequest;
import com.pine.common.beans.pineframework.response.SysMenuQueryResponse;
import com.pine.common.beans.response.DropDownTreeResponse;
import com.pine.dao.pineframework.entity.SysMenu;
import com.pine.service.core.QueryService;

import java.util.List;

/**
 * <p>
 * 菜单表 服务类
 * </p>
 *
 * @author pine manage
 * @since 2024-08-12
 */
public interface SysMenuService extends QueryService<SysMenuQueryRequest, SysMenuQueryResponse> {

    /**
     * 查询菜单及子菜单
     *
     * @param menuId 顶层菜单ID
     * @return 菜单列表
     */
    List<SysMenu> listMenuAndChild(Long menuId);

    /**
     * 下拉选择，查询部门树形结构
     *
     * @return 部门树形结构
     */
    List<DropDownTreeResponse<Long>> dropDownTree();
}

